package com.nbcio.pm.domain.vo;

import com.nbcio.pm.domain.PmProjectDocument;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 项目文档视图对象 pm_project_document
 *
 * @author nbacheng
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PmProjectDocument.class, reverseConvertGenerate = false)
public class PmProjectDocumentVo extends PmProjectDocument {

    private static final long serialVersionUID = 1L;

    // 关联字段（非数据库字段）
    private String projectName;
    private String uploaderName;
    private String categoryName;
    private String fileSizeFormatted;
    private String uploadTimeFormatted;
    
    // 树形结构字段
    private Boolean hasChildren;
    
    // 树形结构的子节点（使用正确的类型）
    private List<PmProjectDocumentVo> childrenVo;
}
